<!-- 所有选课信息 -->
<div class="select_courses">
	<p class="can_selecte_courses_show">所有管理员如下</p>
	<?php 
		$superManagerController = new SuperManagerController();
		$showAllManagerInfo = $superManagerController->allManagersShow();
		//echo "##########";
		//var_dump($showAllManagerInfo);
		?>
	<div class="table_show">
		<table class="can_select_courses_show_table">
			<tr>
				<th>序号</th><th>管理员账号</th><th>性别</th><th>权限</th><th>相关操作</th>
			</tr>
			<?php if(!empty($showAllManagerInfo)){
				//echo "%%%%%";
				$count = 1;
				foreach ($showAllManagerInfo as $row){
				?>
			<tr>
				<td><?php echo "$count"; $count++?></td>
				<td><?php echo $row['manager_account']?></td>
				<td><?php 
						if($row['manager_sex'] === 'M')
							{echo "男";} else {echo "女";};?></td>
				<td>普通</td>
				<!-- 修改和删除管理员 -->
				<td>
					<?php $path = "<a href="."./SuperManagerView.php?operation=delete&object=manager&courseOrStudentId=".$row['manager_account'].">删除</a>"?>
					<?php echo $path?>
				</td>
			</tr>
			<?php 
					}
				}else {
				?>
			<tr><td class="table_empty_show" colspan="6">暂无管理员信息!</td></tr>
			<?php }?>
		</table>
	</div>
</div>